# 1.导包
from sklearn.linear_model import LinearRegression

# 2.数据
x = [[160],[166],[172],[174],[180]]
y = [56.3,60.6,65.1,68.5,75]

# 3.模型训练
LR = LinearRegression()
LR.fit(x,y)
print(LR.coef_)
print(LR.intercept_)
print(LR.coef_ * [176] + LR.intercept_)

# 4.模型预测
print(LR.predict([[176]]))